Operators

Operator  Type                Function
-------------------------------------------------------------------------------
=         floating, string    logical equal (type 2 comparison)
==        numeric, string     almost equal (type 3 comparison) equal to 1 part
                                                                      in 10E-7
+         numeric             addition
-         numeric             subtraction
/         numeric             division
*         numeric             multiplication
<         numeric, string     less than (type 2 comparison)
>         numeric, string     greater than (type 2 comparison)
<=        numeric, string     less than or equal to (type 2 comparison)
>=        numeric, string     greater than or equal to (type 2 comparison)
<>        numeric, string     not equal to (type 3 comparison)
&         string              concatenation
&&        bitwise             AND
||        bitwise             OR
^^        bitwise             XOR
~         bitwise             NOT
OR        logical             OR
AND       logical             AND
XOR       logical             XOR
NOT       logical             NOT
MOD       integer             modulus
DIV       integer             divide
INSTR     string              type 1 string comparison
^         floating            raise to the power
-         floating            unary minus
+         floating            unary plus

If the specified logical operation is true then a value not equal to zero will
be returned. If the operation is false then a value of zero will be returned.

The precedence of SuperBASIC operators is defined in the table above. In the
order of evaluation in an expression cannot be deduced from this table then the
relevant operations are performed from left to right. The inbuilt precedence of
SuperBASIC operators can be overriden by enclosing the relevant sections of the
expression in parantheses.

highest:  unary plus and minus
          string concatenation
          INSTR
          exponentation
          multiply, divide, modulus and integer divide
          add and subtract
          logical comparison
          NOT (bitwise or logical)
          AND (bitwise or logical)
lowest:   OR and XOR (bitwise or logical)

